import {axios} from "../util/request";

const api = {
    fileAnalysisPre: "/api/data"
};

export function getTotalJsonAPI(data) {
    //罚单数目
    return axios({
        url: `${api.fileAnalysisPre}/getTotalJson`,
        method: "POST",
        data: data
    });
}

export function getFineJsonAPI(data) {
    //罚金总数
    return axios({
        url: `${api.fileAnalysisPre}/getFineJson`,
        method: "POST",
        data: data
    });
}

export function getOrgJsonAPI(data) {
    // 机构罚单数目
    return axios({
        url: `${api.fileAnalysisPre}/getOrgJson`,
        method: "POST",
        data: data
    });
}

export function getPersonJsonAPI(data) {
    // 个人罚单数目
    return axios({
        url: `${api.fileAnalysisPre}/getPersonJson`,
        method: "POST",
        data: data
    });
}

export function getMapDataListAPI(data) {
    // 地图
    return axios({
        url: `${api.fileAnalysisPre}/getMapData`,
        method: "POST",
        data: data
    });
}

export function getOrgDetailJsonAPI(data) {
    // 单位罚单数目
    return axios({
        url: `${api.fileAnalysisPre}/getOrgDetailJson`,
        method: "POST",
        data: data
    });
}

export function getOrgDetailFineJsonAPI(data) {
    // 单位罚金数目
    return axios({
        url: `${api.fileAnalysisPre}/getOrgDetailFineJson`,
        method: "POST",
        data: data
    });
}

export function getPieJsonAPI(data) {
    // 监管层级罚单笔数
    return axios({
        url: `${api.fileAnalysisPre}/getPieJson`,
        method: "POST",
        data: data
    });
}

export function getPieFineJsonAPI(data) {
    //监管层级罚金数目
    return axios({
        url: `${api.fileAnalysisPre}/getPieFineJson`,
        method: "POST",
        data: data
    });
}

